import request from '@/utils/request'

// 查询库存查询列表
// export function listInventoryInquiry(query) {
//   return request({
//     url: '/wareManagement/inventoryInquiry/list',
//     method: 'get',
//     params: query
//   })
// }
export function listInventoryInquiry(query) {
  return request({
    url: '/OutboundManagement/deliveryOperation/list',
    method: 'get',
    params: query
  })
}
// 查询库存查询详细
export function getInventoryInquiry(inquiryId) {
  return request({
    url: '/wareManagement/inventoryInquiry/' + inquiryId,
    method: 'get'
  })
}

// 新增库存查询
// export function addInventoryInquiry(data) {
//   return request({
//     url: '/wareManagement/inventoryInquiry',
//     method: 'post',
//     data: data
//   })
// }
export function addInventoryInquiry(data) {
  return request({
    url: '/OutboundManagement/deliveryOperation/XiuGaiChu',
    method: 'put',
    data: data
  })
}
// 修改库存查询
// export function updateInventoryInquiry(data) {
//   return request({
//     url: '/wareManagement/inventoryInquiry',
//     method: 'put',
//     data: data
//   })
// }
export function updateInventoryInquiry(data) {
  return request({
    url: '/OutboundManagement/deliveryOperation/ChuKu',
    method: 'put',
    data: data
  })
}
// 删除库存查询
export function delInventoryInquiry(inquiryId) {
  return request({
    url: '/wareManagement/inventoryInquiry/' + inquiryId,
    method: 'delete'
  })
}
